/* 业务层数据提交 */
import storage from "../utils/storage";

export default {
  saveUserInfo(state, userInfo) {
    state.userInfo = userInfo;
    storage.setItem("userInfo", userInfo);
  },
  saveMenuList(state, list) {
    state.menuList = list;
    storage.setItem("menuList", list);
  },
  setActionList(state, list) {
    state.actionList = list;
    storage.setItem("actionList", list);
  },
};
